import grails.test.*
import org.springframework.web.context.request.RequestContextHolder as RCH 

class SchoolServiceTests extends GrailsUnitTestCase {
    def schoolService 
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testSomething() {
        def id = 10
        schoolService.mkdir(id)
        def dir = new File(RCH.requestAttributes.servletContext.getRealPath('/' + "home" + '/' + id))
        assertTrue dir.exists() 
    }
}
